<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Agreements.Migrated_SalariesOverview"
    CodeFile="SalariesOverview.aspx.cs" %>

<%@ Register TagPrefix="uc1" TagName="SalariesOverviewSearch" Src="Controls/SalariesOverviewSearch.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>SalariesOverview</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="SalariesOverviewForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="true"
                                    OnNavigate="OnSubNavigate" />
                                <cc1:AgreementDetailsSubNavigation ID="agreementDetailsSubNavigation" runat="server"
                                    OnNavigate="OnDetailsSubNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:ProjectHeaderBar ID="projectHeaderBar" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <div id="searchFilter" runat="server">
                        <table width="100%" style="background-color: #ffffff">
                            <tr>
                                <td colspan="2">
                                    <uc1:SalariesOverviewSearch ID="salariesOverviewSearch" runat="server"></uc1:SalariesOverviewSearch>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" DaysProjectEndingLabel="Salary on Funds Ending In">
                                    </cc1:SearchCriteriaDisplay>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                <asp:Label runat="server" ID="pageLabel"></asp:Label></td>
                            <td align="center">
                                <cc1:RefreshDates ID="refreshDates" runat="server" Visible="True" GLAsOfDateVisible="False"
                                    POAPAsOfDateVisible="False" SalaryAsOfDateVisible="True" />
                            </td>
                            <td align="right">
                                <cc1:InsightDownloadBar ID="downloadBar" runat="server" OnDownloadToExcel="OnDownloadToExcel"
                                    OnDownloadToPDF="OnDownloadToPDF" OnFailedAction="OnDownloadFailed" useRootHost="true" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="0">
                        <tr>
                            <td>
                                <cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataGrid ID="dataGrid" runat="server" AllowCustomPaging="True" AllowPaging="True"
                                    AllowSorting="True" AutoGenerateColumns="False" CssClass="DataGrid" OnItemCommand="OndataGridItemCommand"
                                    OnItemCreated="OnItemCreated" OnItemDataBound="OnItemDataBound" OnSortCommand="OnSort"
                                    ShowFooter="True" Width="100%">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem" />
                                    <ItemStyle CssClass="DataGridItem" />
                                    <HeaderStyle CssClass="DataGridHeader" />
                                    <FooterStyle CssClass="DataGridFooter"></FooterStyle>
                                    <PagerStyle Visible="False" />
                                    <Columns>
                                        <asp:BoundColumn DataField="LastName" SortExpression="LastName" ReadOnly="True" HeaderText="Last Name"
                                            FooterText="Totals"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="FirstName" SortExpression="FirstName" ReadOnly="True"
                                            HeaderText="First Name"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="FundNumber" SortExpression="FundNumber" ReadOnly="True"
                                            HeaderText="Fund #"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="AnnualRate" SortExpression="AnnualRate" ReadOnly="True"
                                            HeaderText="Annual Rate" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="StartDate" SortExpression="StartDate" ReadOnly="True"
                                            HeaderText="Start Date"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="EndDate" SortExpression="EndDate" ReadOnly="True" HeaderText="End Date">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="MonthlyRate" SortExpression="MonthlyRate" ReadOnly="True"
                                            HeaderText="Monthly Rate" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="MonthsRemaining" SortExpression="MonthsRemaining" ReadOnly="True"
                                            HeaderText="Months Remaining" DataFormatString="{0:f}"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="CommittedSalary" SortExpression="CommittedSalary" ReadOnly="True"
                                            HeaderText="Committed Salary" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="FringeRate" SortExpression="FringeRate" ReadOnly="True"
                                            HeaderText="Fringe Rate"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="CommittedFringe" SortExpression="CommittedFringe" ReadOnly="True"
                                            HeaderText="Committed Fringe" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="TotalCommitted" SortExpression="TotalCommitted" ReadOnly="True"
                                            HeaderText="Total Committed" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
                                        </asp:BoundColumn>
                                        <asp:ButtonColumn ButtonType="LinkButton" DataTextField="PaidToDate" SortExpression="PaidToDate"
                                            CommandName="LinkLaborDistribution" HeaderText="Paid To Date" ItemStyle-HorizontalAlign="Right"
                                            FooterStyle-HorizontalAlign="Right"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="SponsorEffort" SortExpression="SponsorEffort" ReadOnly="True"
                                            HeaderText="Sponsor Effort" DataFormatString="{0:f}"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="TrackedEffort" SortExpression="TrackedEffort" ReadOnly="True"
                                            HeaderText="Tracked Effort" DataFormatString="{0:f}"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="PerEmployeeJobMapId" SortExpression="PerEmployeeJobMapId"
                                            ReadOnly="True" Visible="False" HeaderText="PerEmployeeJobMapId"></asp:BoundColumn>
                                    </Columns>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
